<?php


//define('APP_ROOT', dirname(__FILE__) .'/');
require_once 'include/inc.config.php';
require_once 'load_wact.php';
require_once WACT_ROOT . 'controller/pathinfo.inc.php';

@session_start();
$Front = new PathInfoDispatchController();
$Front->addChild('login',   new Handle(APP_CTRL_ROOT . 'pub/pub.login.php|LoginPage'));
$Front->addChild('logout',   new Handle(APP_CTRL_ROOT . 'pub/pub.login.php|LogoutPage'));
$Front->addChild('index',   new Handle(APP_CTRL_ROOT . 'pub/pub.index.php|IndexPage'));
$Front->addChild('register',   new Handle(APP_CTRL_ROOT . 'pub/pub.register.php|RegisterPage'));
$Front->addChild('subscribe',   new Handle(APP_CTRL_ROOT . 'pub/pub.subscribe.php|SubscribePage'));
$Front->addChild('thanksubscribe',   new Handle(APP_CTRL_ROOT . 'pub/pub.subscribe.php|ThanksubscribePage'));
$Front->addChild('cancelsubscribe',   new Handle(APP_CTRL_ROOT . 'pub/pub.subscribe.php|CancelsubscribePage'));
$Front->addChild('alreadysubscribed',   new Handle(APP_CTRL_ROOT . 'pub/pub.subscribe.php|AlreadysubscribePage'));
$Front->addChild('thankjoining',   new Handle(APP_CTRL_ROOT . 'pub/pub.register.php|ThankjoiningPage'));
$Front->addChild('pswdreminder',   new Handle(APP_CTRL_ROOT . 'pub/pub.pswdreminder.php|PswdreminderPage'));
$Front->addChild('pswdsent',   new Handle(APP_CTRL_ROOT . 'pub/pub.pswdreminder.php|PswdsentPage'));
$Front->addChild('teamstats',   new Handle(APP_CTRL_ROOT . 'pub/pub.teamstats.php|TeamStatsPage'));
$Front->addChild('premiumvideo',   new Handle(APP_CTRL_ROOT . 'pub/pub.premiumvideo.php|PremiumVideoPage'));



$Front->setDefaultChild('index');
$Front->start();

?>
